package org.coone.veteran.basic.hashcode;

public class SampleObj {

	private int id;
	
	private String name;
	
	private int age;
	
	public SampleObj(int id, String name, int age) {
		this.id = id;
		this.name = name;
		this.age = age;
	}
	
	@Override
	public boolean equals(Object obj) {
		SampleObj obj2 = (SampleObj) obj;
		
		if(this.id != obj2.id) return false;
		if(this.name != obj2.name) return false;
		if(this.age != obj2.age) return false;
		
		return true;
	}
	
}
